class Game:
    levels=["青铜","白银","黄金","铂金","砖石","王者"]
    def __init__(self,n,l):
        self.name=n
        self.level=l
    def show(self):
        index1 = Game.levels.index(self.level)
        print("我是%s,我的等级为%s" % (self.name, Game.levels[index1 + 1]))
player=Game("Tom","青铜")
player.show()



